<%@ include file="/head.jsp"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<link type="text/css" rel="stylesheet" href="css/login.css">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
	<div class="container">
		<div class="form row">
			<form class="form-horizontal col-xs-offset-3 col-sm-offset-3 col-md-offset-3" id="login_form" action="login.do" method="post">
				<h3 class="form-title">云盘登录</h3>
				<div class="col-xs-9 col-sm-9 col-md-9">
					<div class="form-group">
						<i class="fa fa-user fa-lg"></i> <input class="form-control required" type="text" placeholder="用户名" name="userName" autofocus="autofocus" maxlength="20" />
					</div>
					<div class="form-group">
						<i class="fa fa-lock fa-lg"></i> <input class="form-control required" type="password" placeholder="密码" name="pwd" maxlength="8" />
					</div>
					<div class="form-group">
						<!-- <label class="checkbox"> <input type="checkbox" name="remember" value="1" /> 记住我
						</label> 
						<hr />-->
						<a href="javascript:;" id="register_btn" class="">注册账户</a> <a href="javascript:;" id="forget_btn" class="">忘记密码</a>
					</div>
					<div class="form-group">
						<input type="reset" class="btn btn-success pull-right" value="重置" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" class="btn btn-success pull-right" value="登录" />
					</div>
				</div>
			</form>
		</div>
		<div class="form row">
			<form class="form-horizontal col-xs-offset-3 col-sm-offset-3 col-md-offset-3" id="register_form" action="reg.do" method="post">
				<h3 class="form-title">注册</h3>
				<div class="col-xs-9 col-sm-9 col-md-9">
					<div class="form-group">
						<i class="fa fa-user fa-lg"></i> <input class="form-control required" type="text" placeholder="用户名" name="username" id="username" autofocus="autofocus" onchange="referemail()"/>
					</div>
					<div class="form-group">
						<i class="fa fa-lock fa-lg"></i> <input class="form-control required" type="password" placeholder="密码" id="register_password" name="password" />
					</div>
					<div class="form-group">
						<i class="fa fa-check fa-lg"></i> <input class="form-control required" type="password" placeholder="重新键入您的密码" name="rpassword" />
					</div>
					<div class="form-group">
						<i class="fa fa-envelope fa-lg"></i> <input class="form-control eamil" type="text" placeholder="Email" name="email" id="useremail" onchange="referemail()" />
					</div>
					<div class="form-group">
						<input type="submit" class="btn btn-success pull-right" value="注册 " /> <input type="button" class="btn btn-info pull-left" id="back_btn" value="返回" />
					</div>
				</div>
			</form>
		</div>
		<div class="form row"> 
			<form class="form-horizontal col-xs-offset-3 col-sm-offset-3 col-md-offset-3" id="forget_form" action="reset.do" method="post">
				<h3 class="form-title">重置密码</h3>
				<div class="col-xs-9 col-sm-9 col-md-9">
					<div class="form-group">
						<i class="fa fa-envelope fa-lg"></i> <input class="form-control eamil" type="text" placeholder="请输入注册时邮箱" name="email" id="email" onchange="refer()"/>
					</div>
					<div class="form-group">
						<i class="fa fa-lock fa-lg"></i> <input class="form-control required" type="password" placeholder="请输入新密码" id="return_password" name="password"  onchange="refer()"/>
					</div>
					<div class="form-group">
						<i class="fa fa-check fa-lg"></i> <input class="form-control required" type="password" placeholder="再次键入您的密码" name="rpassword" />
					</div>
					<div class="form-group">
						<input type="submit" class="btn btn-success pull-right" value="重置" /> <input type="button" class="btn btn-info pull-left" id="return_btn" value="返回" />
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>
